package com.weseal.form;

import com.weseal.domain.FunctionInfo;
import org.springframework.beans.BeanUtils;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @create 2017/9/10
 */
public class FunctionInfoForm {
	private Long id;
	private String functionName;
	private String functionPath;
	private String functionIdentity;
	private Long parentId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFunctionName() {
		return functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}

	public String getFunctionPath() {
		return functionPath;
	}

	public void setFunctionPath(String functionPath) {
		this.functionPath = functionPath;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getFunctionIdentity() {
		return functionIdentity;
	}

	public void setFunctionIdentity(String functionIdentity) {
		this.functionIdentity = functionIdentity;
	}

	public FunctionInfo convert2Domain() {
		FunctionInfo domain = new FunctionInfo();
		BeanUtils.copyProperties(this, domain);
		return domain;
	}
}
